import http from "@/server/http";

// 问卷测评任务列表
export const queryQuestionnaireList = (params) => {
    return http({
        url: "/user/questionnaire/task/index",
        method: "POST",
        data: params,
    })
}

//问卷测评列表
export const queryQnEvalList = (params) => {
    return http({
        url: "/user/questionnaire/task/get_task_paper_list",
        method: "POST",
        data: params,
    })
}

//问卷测评详情
export const queryQnEvalDet = (params) => {
    return http({
        url: "/user/questionnaire/task/get_task_paper_info",
        method: "POST",
        data: params,
    })
}

//获取问卷题目
// export const queryQnTopic = (params) => {
//     return http({
//         url: " /user/questionnaire/task/paper_info",
//         method: "POST",
//         data: params,
//     })
// }

// 问卷测评记录 
export const queryQnEvRecord = (params) => {
    return http({
        url: "/user/questionnaire/result/mobile_log",
        method: "POST",
        data: params,
    })
}

//获取记录详情
export const queryRecordDet = (params) => {
    return http({
        url: "/user/questionnaire/result/info",
        method: "POST",
        data: params,
    })
}

//查看问卷问题 
export const queryQnPaperInfo = (params) => {
    return http({
        url: "/user/questionnaire/task/paper_info",
        method: "POST",
        data: params,
    })
}

//提交问卷答案 
export const subQnAnswer = (params) => {
    return http({
        url: "/user/questionnaire/task/submit_answer",
        method: "POST",
        data: params,
    })
}

//查看答卷详情 
export const checkResult = (params) => {
    return http({
        url: "/user/questionnaire/result/result_info",
        method: "POST",
        data: params,
    })
}

//删除整个任务报告 
export const delQnReport = (params) => {
    return http({
        url: "/user/questionnaire/result/task_result_del",
        method: "POST",
        data: params,
    })
}

//删除单个问题 
export const delQnSingleReport = (params) => {
    return http({
        url: "/user/questionnaire/result/task_paper_result_del",
        method: "POST",
        data: params,
    })
}